<form method="post" class="js_comment_form_approval" id="applyUpdateForm">
    <input type="hidden" name="applyId" value="{{currentApply.id}}"/>
    <input type="hidden" id="approvalUserId" name="approval.approvalUserId"/>
    <input type="hidden" id="copyUserIds" name="copyUserIds"/>
    <input type="hidden" name="taskid" value="{{currentApply.taskid}}"/>
    <ul class="pop_list crate-entity-list crate-approval-list">
        <li>
            <label>{{'APPROVAL_ODD_NUMBER' | i18n}}：</label>
            <span class="des">{{currentApply.oddNumber}}</span>
        </li>
        <li>
            <label>{{'APPROVAL_FLOW_CATEGORY' | i18n}}：</label>
            <span class="des">{{flowCategoryName}}</span>
        </li>
        <li>
            <label>{{'APPROVAL_FLOW' | i18n}}：</label>
            <span class="des">{{flowName}}</span>
        </li>
        {{if flowDescription != ''}}
            <li>
                <label>{{'APPROVAL_FLOW_DESCRIPTION' | i18n}}：</label>
                <span class="des">{{flowDescription}}</span>
            </li>
        {{/if}}
        <!--<li>
            <label>{{'APPROVAL_PEOPLE' | i18n}}：</label>
            <div class="name_select">
                <input type="hidden" name="approval.approvalUserId" class="approvalUser_hidden" value="{{currentApprovalUserId}}" "/>
                <a id="approverSelectA" href="javascript:;" title="{{'APPROVAL_SELECT_PEOPLE' | i18n}}" class="approval_user js_nc_show_approval_user">
                                {{if approversLength == 1 && allowSelectApprover == 0}}
                                {{approvers[0].name}}
                                {{else}}
                                {{'APPROVAL_SELECT_PEOPLE' | i18n}}
                                {{/if}}
                </a>
                <div class="user_select select_depart_list js_nc_show_approval_user" style="display: none">
                    {{if hasApprovers == 1}}
                    <div class="group_select_top">
                        <h5>{{'APPROVAL_SELECT_FROM_QUEUE' | i18n}}：</h5>
                    </div>
                    <ul class="group_member selectColleague_ul">
                        {{each approvers as approver i}}
                        <li class="nc_selectColleague_li" uid="{{approver.id}}" uname="{{approver.name}}">
                            <a href="javascript:;">
                                <img class="userpic" ucard="uid={{approver.id}}" src="{{approver.icon}}"/>
                            </a>
                            <p><span>{{approver.name}}</span></p>
                        </li>
                        {{/each}}
                    </ul>
                    {{/if}}
                    {{if allowSelectApprover == 1}}
                    <div class="user_select_other">
                        <h5>{{if hasApprovers == 1}}{{'APPROVAL_OR' | i18n}}{{/if}}{{'APPROVAL_INPUT_TO_SELECT' | i18n}}：</h5>
                        <input id="aplUserSelect" type="text" style="width: 100px;"/>
                        <a id="aplSelectConfirmA" href="javascript:void(0);">{{'APPROVAL_CONFIRM' | i18n}}</a>
                    </div>
                    {{/if}}
                </div>
            </div>
        </li>
        <li>
            <label>{{'APPROVAL_COPY_2' | i18n}}</label>
            <input type="hidden" id="copyUserIds" name="copyUserIds"/>
            <input type="text" id="selectCopyInput"/>
        </li>-->
        <li>
            <!-- <ul class="pop_list crate-entity-list crate-approval-list">
                <li class="rk-formrow" ><label>{{'TITLE' | i18n}}</label><input type="text" _id="title" name="title" value="{{currentApply.title}}" placeholder="{{flowName}}"></li>
            </ul>-->
            <div id="applyItemListDiv"></div>
        </li>
        {{if uploadFlg == 1}}
        <li>
            <label>{{'UPLOAD' | i18n}}{{'ATTACHMENT' | i18n}}</label>
            <a href="javascript:void(0);" id="fileName_a"></a>
            {{if uploadRequiredFlg == 1}}
            <span class="nc_error_upload_required mandatory_symbol">*</span>
            {{/if}}
            <div class="fileAdd">
                <div class="fileinput-box">
                    <span class="fileinput-button">添加文件</span>
                </div>
            </div>
            <input type="hidden" id="attachArrayId" name="attachArray"/>
            {{if flowCategoryFile.fileUrl != ''}}
            <a href="/common-file-download.action?commonFileId={{flowCategoryFile.id}}&tfcode={{flowCategoryFile.tfcode}}" class="template_link">{{'DOWNLOAD' | i18n}}{{'ATTACHMENT' | i18n}}{{'TEMPLATE' | i18n}} ({{flowCategoryFile.fileName}})</a>
            {{/if}}
        </li>
        <li class="file_queue_li">
            <div id="myFileQueue"></div>
        </li>
        <li class="file_queue_li" style="display: none">
            <div id="fileQueue"></div>
        </li>
        {{/if}}
        <input type="hidden" name="paramMap['belongId']" id="belong_id" value="{{if belongId == ''}}13{{else}}{{belongId}}{{/if}}">
        <input type="hidden" name="paramMap['objectId']" id="object_id" value="{{objectId}}">
        {{if businessFlg == 1}}
            <li class="clear">
                <label>{{'BUSINESS' | i18n}}</label>
                {{if belongId != '' && entityName != ''}}
                <span class="task_group">
                    {{if 1 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class account" title="{{'APPROVAL_THIS_IS_A_1' | i18n}}"></span>
                            <a target="_blank" href="/final/account.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 2 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class contact" title="{{'APPROVAL_THIS_IS_A_2' | i18n}}"></span>
                            <a target="_blank" href="/final/contact.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 3 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class opp" title="{{'APPROVAL_THIS_IS_A_3' | i18n}}"></span>
                            <a target="_blank" href="/final/opportunity.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 11 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class leads" title="{{'APPROVAL_THIS_IS_A_4' | i18n}}"></span>
                            <a target="_blank" href="/final/lead.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 6 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class campaign" title="{{'APPROVAL_THIS_IS_A_5' | i18n}}"></span>
                            <a target="_blank" href="/final/campaign.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 9 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class partner" title="{{'APPROVAL_THIS_IS_A_10' | i18n}}"></span>
                            <a target="_blank" href="/final/partner.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 64 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class expenseaccounts" title="{{'APPROVAL_THIS_IS_A_6' | i18n}}"></span>
                            <a target="_blank" href="/final/expenseaccount.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 66 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class agent" title="{{'APPROVAL_THIS_IS_A_7' | i18n}}"></span>
                            <a target="_blank" href="/final/agent.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 67 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class terminal" title="{{'APPROVAL_THIS_IS_A_8' | i18n}}"></span>
                            <a target="_blank" href="/final/terminal.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                    {{if 15 == belongId}}
                        <p class="feed-group-name">
                            <span class="feed-group-class contract" title="{{'APPROVAL_THIS_IS_A_11' | i18n}}"></span>
                            <a target="_blank" href="/final/contract.action?id={{objectId}}">{{entityName}}</a>
                        </p>
                    {{/if}}
                </span>
                {{/if}}
                {{if belongId == '' || entityName == ''}}
                <span>
                    <a id="btnSelectBusiness" href="javascript:;" title="{{'APPROVAL_SELECT_REL_BUSINESS' | i18n}}">{{'APPROVAL_SELECT_REL_BUSINESS' | i18n}}</a>
                    {{if businessRequiredFlg == 1}}
                        <span class="nc_error_business_required mandatory_symbol">*</span>
                    {{/if}}
                </span>
                    <div id="businessDiv" style="display: none" class="bussiness-type">
                    {{if relBusiness != null}}
                        <span class="ui-select-buttonset">
                            <select style="width:75px" id="bussiness_type">
                            {{if relBusiness.account == 1}}<option value="1">{{'APPROVAL_ACCOUNT' | i18n}}</option>{{/if}}
                            {{if relBusiness.opportunity == 1}}<option value="2">{{'APPROVAL_OPPORTUNITY' | i18n}}</option>{{/if}}
                            {{if relBusiness.contact == 1}}<option value="3">{{'APPROVAL_CONTACT' | i18n}}</option>{{/if}}
                            {{if relBusiness.lead == 1}}<option value="4">{{'APPROVAL_LEAD' | i18n}}</option>{{/if}}
                            {{if relBusiness.campaign == 1}}<option value="5">{{'APPROVAL_CAMPAIGN' | i18n}}</option>{{/if}}
                            {{if relBusiness.partner == 1}}<option value="10">{{'APPROVAL_PARTNER' | i18n}}</option>{{/if}}
                            {{if relBusiness.expenseAccount == 1}}<option value="7">{{'APPROVAL_EXPENSE_ACCOUNT' | i18n}}</option>{{/if}}
                            {{if relBusiness.agent == 1}}<option value="8">{{'APPROVAL_AGENT' | i18n}}</option>{{/if}}
                            {{if relBusiness.terminal == 1}}<option value="9">{{'APPROVAL_TERMINAL' | i18n}}</option>{{/if}}
                            {{if relBusiness.contract == 1}}<option value="11">{{'APPROVAL_CONTRACT' | i18n}}</option>{{/if}}
                            </select>
                        </span>
                        <span id="account_span" style="margin-right: 0px">
                            <input id="account" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_ACCOUNT' | i18n}}" class="text" type="text" title="{{'APPROVAL_ACCOUNT' | i18n}}" errMsgId="account_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="account_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="opp_span" style="margin-right: 0px" class="hidden">
                            <input id="opp" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_OPPORTUNITY' | i18n}}" class="text" type="text" title="{{'APPROVAL_OPPORTUNITY' | i18n}}" errMsgId="opp_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="opp_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="contact_span" style="margin-right: 0px" class="hidden">
                            <input id="contact" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_CONTACT' | i18n}}" class="text" type="text" title="{{'APPROVAL_CONTACT' | i18n}}" errMsgId="contact_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="contact_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="lead_span" style="margin-right: 0px" class="hidden">
                            <input id="lead" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_LEAD' | i18n}}" class="text" type="text" title="{{'APPROVAL_LEAD' | i18n}}" errMsgId="lead_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="lead_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="campaign_span" style="margin-right: 0px" class="hidden">
                            <input id="campaign" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_CAMPAIGN' | i18n}}" class="text" type="text" title="{{'APPROVAL_CAMPAIGN' | i18n}}" errMsgId="campaign_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="campaign_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="partner_span" style="margin-right: 0px" class="hidden">
                            <input id="partner" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_PARTNER' | i18n}}" class="text" type="text" title="{{'APPROVAL_PARTNER' | i18n}}" errMsgId="partner_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="partner_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="expenseaccount_span" style="margin-right: 0px" class="hidden">
                            <input id="expenseaccount" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_EXPENSE_ACCOUNT' | i18n}}" class="text" type="text" title="{{'APPROVAL_EXPENSE_ACCOUNT' | i18n}}" errMsgId="expenseaccount_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="expenseaccount_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="agent_span" style="margin-right: 0px" class="hidden">
                            <input id="agent" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_AGENT' | i18n}}" class="text" type="text" title="{{'APPROVAL_AGENT' | i18n}}" errMsgId="agent_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                        <span id="agent_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="terminal_span" style="margin-right: 0px" class="hidden">
                            <input id="terminal" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_TERMINAL' | i18n}}" class="text" type="text" title="{{'APPROVAL_TERMINAL' | i18n}}" errMsgId="terminal_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="terminal_search_msg" class="tip_bottom hidden"></span>
                        </span>
                        <span id="contract_span" style="margin-right: 0px" class="hidden">
                            <input id="contract" placeholder="{{'APPROVAL_PLEASE_INPUT_AND_SELECT' | i18n}}{{'APPROVAL_CONTRACT' | i18n}}" class="text" type="text" title="{{'APPROVAL_CONTRACT' | i18n}}" errMsgId="contract_search_msg" />
                            {{if businessRequiredFlg == 1}}
                                <span class="nc_error_business_required mandatory_symbol">*</span>
                            {{/if}}
                            <span id="contract_search_msg" class="tip_bottom hidden"></span>
                        </span>
                    {{/if}}
                    </div>
                {{/if}}
            </li>
        {{/if}}
    </ul>
</form>